/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.jfonia.model.elements;

import org.jfonia.connect5.basics.BasicValueNode;
import org.jfonia.connect5.basics.MutableValueNode;

/**
 *
 * @author Rik Bauwens
 */
public class Lyric extends MusicalElement
{
        private MutableValueNode<String> lyricNode;

        public Lyric()
        {
                this(0);
        }

        public Lyric(int difference)
        {
                super(difference);
                lyricNode = new BasicValueNode<String>("");
        }

        public MutableValueNode<String> getLyricNode()
        {
                return lyricNode;
        }

        public String getLyric()
        {
                return lyricNode.getValue();
        }

        public Lyric setLyric(String lyric)
        {
                lyricNode.setValue(lyric);
                return this;
        }

        @Override
        public Lyric clone(){
            Lyric lyric = new Lyric(getDifference());
            lyric.setLyric(lyricNode.getValue());
            return lyric;
        }
}
